#ifndef LIE_FONT_MANAGER_H
#define LIE_FONT_MANAGER_H

#include <map>
#include <SFML/Graphics.hpp>

class FontManager
{
private:
    std::map<std::string, sf::Font*> Images;

    bool SearchImage(const std::string &ImageLink, sf::Font* &ImgTemp);
    sf::Font *CreateImage(const std::string &ImageLink);

    FontManager(const FontManager&);
    FontManager& operator= (const FontManager&);
    FontManager();
    ~FontManager();
    static FontManager singleton;

public:

    sf::Font *GetFont(const std::string &ImageLink);

    void DeleteImage(sf::Font &Img);
    void DeleteImage(const std::string& ImageLink);

    static FontManager getSingleton(){return singleton;};
    static FontManager* getSingletonPtr(){return &singleton;};
};

#endif
